package solitaire.deck;

import java.awt.geom.Point2D;

public class PlayPile extends PileCollection {

	public Card findCard(Point2D point)
	{
		Card result = null;
		for (Pile p : this)
		{
			for (Card c : p.getCards())
			{
				if (c.contains(point)) 
				{ 
					result = c; 
				}
			}
		}
		return result;
		
	}
	
}
